import * as types from "../types";
const defaultState = {
  collapsed: false,
};

export const reducers = (state = defaultState, { type }) => {
  switch (type) {
    case types.TOGGLE_SIDEBAR:
      return { ...state, collapsed: !state.collapsed };

    default:
      return state;
  }
};
